<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>课程中心 - LearnHub</title>
    <style>
        /* 共用样式与首页相同，此处省略 */
        .course-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 2rem;
        }
        .category-card {
            flex: 1 1 200px;
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s;
        }
        .category-card:hover {
            transform: translateY(-5px);
        }
        .category-card i {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        .course-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            padding: 2rem;
        }
        .course-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .course-image {
            height: 180px;
            background-size: cover;
            background-position: center;
        }
        .course-info {
            padding: 1.5rem;
        }
        .course-info h3 {
            margin-top: 0;
            color: var(--primary-color);
        }
        .course-meta {
            display: flex;
            justify-content: space-between;
            margin: 1rem 0;
            color: #666;
        }
        .rating {
            color: #ffc107;
        }
        .price {
            font-weight: bold;
            color: var(--accent-color);
        }
        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .filter-group {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .pagination {
            display: flex;
            justify-content: center;
            padding: 2rem;
        }
        .page-btn {
            padding: 0.5rem 1rem;
            margin: 0 0.25rem;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
        }
        .page-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
    </style>
</head>
<body>
    <header>
        <nav>
            <div class="logo">LearnHub</div>
            <div class="nav-links">
                <a href="index.html">首页</a>
                <a href="courses.html" class="active">课程中心</a>
                <a href="news.html">学习资讯</a>
                <a href="community.html">学习社区</a>
                <div class="dropdown">
                    <button class="dropdown-btn">更多</button>
                    <div class="dropdown-content">
                        <a href="#">个人中心</a>
                        <a href="#">学习记录</a>
                        <a href="#">设置</a>
                    </div>
                </div>
            </div>
        </nav>
    </header>

    <section class="hero" style="background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');">
        <div class="hero-content">
            <h1>探索丰富课程</h1>
            <p>从入门到精通，满足您的学习需求</p>
            <div class="search-bar">
                <input type="text" placeholder="搜索课程...">
                <button>搜索</button>
            </div>
        </div>
    </section>

    <div class="filter-bar">
        <div class="filter-group">
            <label for="category">分类:</label>
            <select id="category">
                <option value="all">全部</option>
                <option value="tech">技术</option>
                <option value="business">商业</option>
                <option value="design">设计</option>
                <option value="language">语言</option>
            </select>
        </div>
        <div class="filter-group">
            <label for="level">难度:</label>
            <select id="level">
                <option value="all">全部</option>
                <option value="beginner">初级</option>
                <option value="intermediate">中级</option>
                <option value="advanced">高级</option>
            </select>
        </div>
        <div class="filter-group">
            <label for="sort">排序:</label>
            <select id="sort">
                <option value="popular">最受欢迎</option>
                <option value="newest">最新发布</option>
                <option value="rating">最高评分</option>
            </select>
        </div>
    </div>

    <div class="course-categories">
        <div class="category-card">
            <i>💻</i>
            <h3>编程开发</h3>
            <p>200+ 课程</p>
        </div>
        <div class="category-card">
            <i>📊</i>
            <h3>数据科学</h3>
            <p>150+ 课程</p>
        </div>
        <div class="category-card">
            <i>🎨</i>
            <h3>设计与创意</h3>
            <p>120+ 课程</p>
        </div>
        <div class="category-card">
            <i>🌐</i>
            <h3>语言学习</h3>
            <p>180+ 课程</p>
        </div>
        <div class="category-card">
            <i>📈</i>
            <h3>商业与管理</h3>
            <p>90+ 课程</p>
        </div>
    </div>

    <div class="course-list">
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>Python全栈开发</h3>
                <p>从基础到高级，掌握Python全栈开发技能</p>
                <div class="course-meta">
                    <span class="rating">★★★★☆ (4.5)</span>
                    <span class="duration">32小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">5,200+ 学员</span>
                    <span class="price">¥299</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>机器学习实战</h3>
                <p>使用Python和TensorFlow构建机器学习模型</p>
                <div class="course-meta">
                    <span class="rating">★★★★★ (4.8)</span>
                    <span class="duration">45小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">3,800+ 学员</span>
                    <span class="price">¥399</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1547658719-da2b51169166?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>UI/UX设计基础</h3>
                <p>学习用户界面和用户体验设计的基本原则</p>
                <div class="course-meta">
                    <span class="rating">★★★★☆ (4.3)</span>
                    <span class="duration">28小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">2,500+ 学员</span>
                    <span class="price">¥249</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1522542550221-31fd19575a2d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>JavaScript高级编程</h3>
                <p>深入理解JavaScript核心概念和高级特性</p>
                <div class="course-meta">
                    <span class="rating">★★★★☆ (4.6)</span>
                    <span class="duration">36小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">4,100+ 学员</span>
                    <span class="price">¥329</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>数据可视化与Tableau</h3>
                <p>使用Tableau创建专业的数据可视化图表</p>
                <div class="course-meta">
                    <span class="rating">★★★★☆ (4.4)</span>
                    <span class="duration">24小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">1,800+ 学员</span>
                    <span class="price">¥279</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
        <div class="course-card">
            <div class="course-image" style="background-image: url('https://images.unsplash.com/photo-1504868584819-f8e8b4b6d7e3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');"></div>
            <div class="course-info">
                <h3>产品经理入门</h3>
                <p>从零开始学习产品管理的基本技能和方法</p>
                <div class="course-meta">
                    <span class="rating">★★★★★ (4.7)</span>
                    <span class="duration">30小时</span>
                </div>
                <div class="course-meta">
                    <span class="students">3,200+ 学员</span>
                    <span class="price">¥349</span>
                </div>
                <button style="width: 100%; padding: 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer;">加入课程</button>
            </div>
        </div>
    </div>

    <div class="pagination">
        <button class="page-btn">❮</button>
        <button class="page-btn active">1</button>
        <button class="page-btn">2</button>
        <button class="page-btn">3</button>
        <button class="page-btn">4</button>
        <button class="page-btn">5</button>
        <button class="page-btn">❯</button>
    </div>

    <footer>
        <p>© 2025 LearnHub 智能学习云平台. 保留所有权利.</p>
        <div style="margin-top: 1rem;">
            <a href="#" style="color: white; margin: 0 0.5rem;">关于我们</a>
            <a href="#" style="color: white; margin: 0 0.5rem;">联系我们</a>
            <a href="#" style="color: white; margin: 0 0.5rem;">隐私政策</a>
            <a href="#" style="color: white; margin: 0 0.5rem;">使用条款</a>
        </div>
    </footer>

    <script>
        // 共用JavaScript功能与首页相同，此处省略
    </script>
</body>
</html>